<?
  $tmp1 = trim(preg_replace('/lang=(\w+)/', '', $args), "&");
  $url1 = $page."?".(($tmp1) ? $tmp1."&" : "");
?>

<!-- Footer -->

</div> <!--Page_in_div-->
</div> <!--Page_div-->

<div class="footer_div">
  <div style="height:18px">
    <?=$PageTitle;?>>
  </div>

  <table class="status_div" width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td>
<?
      if ($lang == "en") 
      {
        print "<span class=\"addmenu_item\"><a class=\"addmenu_link\" href=\"{$url1}lang=ru\">{$msg["Russian"]}</a></span>\n";
        print "<span class=\"addmenu_selected\">{$msg["English"]}</span>\n";
      } 
      else 
      {
        print "<span class=\"addmenu_selected\">{$msg["Russian"]}</span>\n";
        print "<span class=\"addmenu_item\"><a class=\"addmenu_link\" href=\"{$url1}lang=en\">{$msg["English"]}</a></span>\n";
      }
?>
    </td>

    <td align="right">
<?
      if ($hidelogon <> 1) 
      {
        if (!$user) 
        {
          print "<span class=\"addmenu_text\">{$msg["Guest"]}</span>\n";
          print "<span class=\"addmenu_item\"><a class=\"addmenu_link\" href=\"logon\">{$msg["Register"]}</a></span>\n";
        } 
        else 
        {
          print "<span class=\"addmenu_text\">{$user["name"]}</span>\n";
          print "<span class=\"addmenu_item\"><a class=\"addmenu_link\" href=\"{$url1}logoff\">{$msg["Logoff"]}</a></span>\n";
        }
      }
?>
    </td>

  </tr>
  </table>

  <div class="copyright_div" style="text-align:center">
  &copy 2010 Maxim Rusov
  </div>

</div> <!--footer_div-->

</div> <!--site_div-->
</div> <!--site_body-->